class CreateCollections < ActiveRecord::Migration[5.2]
  def change
    create_table :collections do |t|

      t.timestamps
    end
    add_reference :collections,:micoposts,foreign_key: true
    add_reference :collections,:users,foreign_key: true
  end


end
